package com.soup.common.module.sys.data;

import com.google.common.collect.Lists;
import lombok.Data;

import java.util.List;

/**
 * 菜单返回模型，不包括功能菜单
 *
 * @author zhaoyi
 */
@Data
public class MenuResponse {

    /**
     * 菜单id
     */
    private Integer menuId;

    /**
     * 菜单标题
     */
    private String title;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * icon
     */
    private String icon;

    /**
     * 是否展开下级
     */
    private boolean spread;

    /**
     * 链接
     */
    private String jump;

    /**
     * 子级菜单列表
     */
    private List<MenuResponse> list = Lists.newArrayList();

    /**
     * 子级菜单下的方法菜单
     */
    private List<MethodMenuResponse> methodMenus = Lists.newArrayList();

    public MenuResponse() {
    }

    public MenuResponse(Integer menuId, String title, String name, String icon, boolean spread, String jump) {
        this.menuId = menuId;
        this.title = title;
        this.name = name;
        this.icon = icon;
        this.spread = spread;
        this.jump = jump;
    }
}
